<?php

require_once("includes/table.php");

abstract class Table_admin extends Table_navigator{
private $table_title;
	
	function Table_admin($table_title,$view){
		$this->table_title = $table_title;
		$this->navigator_link = sprintf('admin.php?view=%s&page=%s',$view,'%s');
		$this->items_a_page = 10;
		
		$this->Table();
	}
	
	function main(){
	$html = <<<HTML
<div class="manage-table">
	<table class="table" cellspacing="3">                  
        <thead>
            <th width="10%%">STT</th>
            <th width="70%%">%s</th>
            <th width="25%%" colspan="2">Tác vụ</th>
        </thead>
        %s
    </table>
    %s
</div>
HTML;

	return sprintf($html,$this->table_title,$this->table_rows(),$this->navigator());
}
}

?>